<?php if($PERMISSION[CAN_VIEW]):?>
	<?php include CORE_DIR."common/javascripts.php"?>
	<?php if($action == ""):?>
		<?php include CORE_DIR."common/navigation.php"?>
		<?php include CORE_DIR."common/searchCriteria.php"?>
		<?php if($page == "items" || $page == "orders"):?>
			<?php include CORE_DIR."common/resultlist2.php";?>
		<?php else:?>
			<?php include CORE_DIR."common/resultlist.php";?>
		<?php endif;?>
	<?php elseif( $action == "view"):?>
		<?php include "manage/$page/view-default.php"?>
	<?php elseif($action == "ajax"):?>
		<?php include CORE_DIR."common/resultlist.php";?>
	<?php elseif( $action == "edit"):?>
		<?php include CORE_DIR."default.php"?>
	<?php elseif($action == "data-list-only"):?>
		<?php include CORE_DIR."common/data-list-only.php";?>
	<?php else:?>
		<?php include "manage/$page/default.php"?>
	<?php endif;?>
<?php endif;?>
